<%-- 
    Document   : show_title
    Created on : 2010-10-28, 18:40:43
    Author     : Kenny Lin
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Wiki - 显示词条</title>
        <link href="${ctx}/templatemo_style.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <div id="templatemo_wrapper">
            <div id="templatemo_header">
                <c:if test="${sessionScope['kenny.wiki.user'] == null}">
                    <div id="login_flage">
                        <div class="banner">
                            <a href="${ctx}/user/regist.jsp">注册</a>
                        </div>
                        <div class="item"></div>
                        <div class="banner">
                            <a href="${ctx}/user/login.jsp">登录</a>
                        </div>
                    </div>
                </c:if>
                <c:if test="${sessionScope['kenny.wiki.user'] != null}">
                    <div id="login_flage">
                        <div class="banner">
                            <a href="${ctx}/user/secure/my_title">我的词条</a>
                        </div>
                        <div class="item"></div>
                        <div class="banner">
                            <a href="${ctx}/user/secure/add_title.jsp">添加词条</a>
                        </div>
                        <div class="item"></div>
                        <div class="banner">
                            <a href="${ctx}/user/secure/user_info.jsp">个人资料</a>
                        </div>
                        <div class="item"></div>
                        <div class="banner">
                            <a href="${ctx}/user/secure/update_info.jsp">修改资料</a>
                        </div>
                        <div class="item"></div>

                        <div class="banner">
                            <a href="${ctx}/user/logout">退出</a>
                        </div>
                        <div class="banner">
                            你好，${sessionScope['kenny.wiki.user'].userName}!
                        </div>
                    </div>
                </c:if>
                <div id="site_title">
                    <a href="http://www.templatemo.com" target="_parent"><img src="${ctx}/images/wiki_logo.png" alt="css templates" /><span>——全球最大中文百科全书</span></a>
                </div> <!-- end of site_title -->
                <div id="search">
                    <form action="${ctx}/searchTitle" method="post">
                        <input type="text" size="30" name="title"/>
                        <input type="submit" value="进入词条"/>
                    </form>
                </div>
            </div>

            <div id="templatemo_main_wrapper">
                <div id="title_content">
                    <c:if test="${requestScope['kenny.wiki.show.title'] == null}">
                        <p style="color: red">对不起，没有找到您想要的词条！！</p>
                    </c:if>
                    <c:if test="${requestScope['kenny.wiki.show.title'] != null}">


                        <p><strong>${requestScope['kenny.wiki.show.title'].titleName}</strong></p>
                        <hr width="800" />
                        <p align="left">
                            <strong>词条定义</strong> &nbsp;
                            <a href="${ctx}/user/secure/secure_title?titleId=${requestScope['kenny.wiki.show.title'].titleId}&flag=find_title">编辑</a>
                        </p>
                        <p align="left" style="text-indent: 30px;">${requestScope['kenny.wiki.show.title'].titleIntro}</p>
                        <hr width="800" />
                        <c:forEach items="${requestScope['kenny.wiki.show.titleItems']}" var="titleItem">
                            <p align="left">
                                <strong>${titleItem.tiName}</strong> &nbsp;
                                <a href="${ctx}/user/secure/secure_title?titleItemId=${titleItem.tiId}&flag=find_titleItem">编辑</a>
                            </p>
                            <p align="left" style="text-indent: 30px;">${titleItem.tiContent}</p>
                            <hr width="800" />
                        </c:forEach>
                    </c:if>
                </div>
            </div>

            <div id="templatemo_main_bottom"></div>

            <div id="templatemo_footer">
                Copyright © 2010 <a href="#">智云软件</a> |
		Designed by <a href="http://www.templatemo.com" target="_parent">Kenny Lin</a> |
		Validate <a href="http://validator.w3.org/check?uri=referer">XHTML</a> &amp;
                <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>
            </div> <!-- end of templatemo_footer -->

            <div class="cleaner"></div>
        </div>
    </body>
</html>